class GameInformation
  attr_accessor :farmers, :warriors, :barracks, :resources, :farms, :status, :warning
  
  def initialize
    @farmers = 0
    @warriors = 0
    @barracks = 0
    @resources = 10
    @farms = 0
    @status = "Ready for your next strategy"
    @warning = ""
  end
  
  def score
    @resources + @farmers*5 + @warriors*10
  end
  
  def rationalize_damage
    if @farmers < 0
      @farmers = 0
    end
    if @resources < 0
      @resources = 0
    end
    if @warriors < 0
      @warriors = 0
    end
  end
  
  def total_population
    @farmers + @warriors
  end
end